package online.longzipeng.cinemasys.vo.movie;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @author lzp
 * @date 2021/4/10 10:07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "电影保存对象",description = "请求参数类")
public class MovieSaveVO {

    /**
     * 电影名称
     */
    @ApiModelProperty(value = "电影名称",example = "霸王花",required = true)
    @NotBlank(message = "电影名称不能为空！！")
    private String name;

    /**
     * 导演
     */
    @ApiModelProperty(value = "导演",example = "隔壁老王",required = true)
    private String director;

    /**
     * 演员
     */
    @ApiModelProperty(value = "演员",example = "怀院七匹狼",required = true)
    private String actor;

    /**
     * 语言
     */
    @ApiModelProperty(value = "语言",example = "中文",required = true)
    private String language;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型",example = "1",required = true)
    private Long typeId;

    /**
     * 电影封面
     */
    @ApiModelProperty(value = "电影封面",example = "xxx.jpg",required = true)
    private String pic;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介",example = "暂无电影介绍",required = true)
    private String description;

    /**
     * 上映时间
     */
    @ApiModelProperty(value = "上映时间",example = "2021-4-10 14:38:14",required = true)
    private LocalDateTime releaseTime;

    /**
     * 时长
     */
    @ApiModelProperty(value = "时长",example = "120",required = true)
    private Integer duration;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注",example = "非常火爆的电影",required = true)
    private String note;

}
